#include "StdAfx.h"
#include "SgRotateAroundPoint.h"
#include <gl/gl.h>

CSgRotateAroundPoint::~CSgRotateAroundPoint(void)
{
}

void CSgRotateAroundPoint::Render()
{
	if (m_child != NULL)
	{
		glTranslated(m_cx, m_cy, m_cz);
		glRotated(m_degrees, m_rx, m_ry, m_rz);
		glTranslated(-m_cx, -m_cy, -m_cz);
		m_child->Render();
	}
}
